<extend name="Person/index"/>

<block name="edit">	

			
			<div class="row-fluid sortable" style="height:600px;">		 
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<!-- <h2><i class="icon-user"></i> Members</h2> -->
						
					</div>
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>订单编号</th>
								  <th>电影名</th>
								  <th>影院名</th>
								  <th>开始时间</th>
								  <th>结束时间</th>
								  <th>价格</th>
								  <th>操作</th>	
							  </tr>
						  </thead>
						  	
						  <tbody>
							<!-- start volist -->
							<empty name="list">
						  		<tr>
						  			<tr><td colspan=9 style="font-size:40px;text-align:center;height:40px;">暂无订单</td></tr>
						  		</tr>
						  	</empty> 
						  	<volist name="list" id="vo">
								<tr>
									<td class="center"><{$vo.ordernumber}></td>
									<td class="center"><{$vo.mname}></td>
									<td class="center"><{$vo.name}></td>
									<td class="center"><{$vo.starttime|date="y/m/d H:i",###}></td>
									<td class="center"><{$vo.endtime|date="y/m/d H:i",###}></td>
									<td class="center"><{$vo.amount}></td>
									<td class="center">
										
										<a class="btn btn-danger" href="<{:U('Detail/index',array('id'=>$vo['id']))}>">
											<i class="icon-trash icon-white"></i> 
											去评价
										</a>
									</td>
								</tr>
							
							</volist> <!-- end volist -->

						  </tbody>
					  </table>            
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
			<{$page}>
			<script>
				$(function(){
					// console.log($('.status'));
					$('.status').click(function(){
						// alert('pig');
						// var sex = $(this).html();
						// sex = sex.replace(/\s/g,'');
						var	id = $(this).attr('bz');
						// console.log(id);
						// console.log(sex);
						var info ='id='+ id  ;
						// console.log(info);
						var	_this = $(this);
						$.ajax({
							type:'get',
							url:"<{:U('change')}>",
							data:info,
							success:function(data){
								console.log(data);
								_this.html(data);
							},
							// dataType:'json',
						})
					})
				})

			</script>
			</block>